package web

import (
	"net/http"
	"fmt"
	"strings"
)

func SayHelloName(w http.ResponseWriter, r *http.Request) {

	r.ParseForm() //解析请求参数
	fmt.Println(r.Form)
	fmt.Println("path", r.URL.Path)
	fmt.Println("Scheme", r.URL.Scheme)

	fmt.Print(r.Form["url_long"])

	for k, v := range r.Form {
		fmt.Println("key:", k)
		fmt.Println("val: ", strings.Join(v, ""))
	}

	fmt.Fprint(w, "Hello assss")
}
